export function pieOneCharts(datavalue) {
	const color = ['#165DFF', '#2CB8C5', '#F0B114', '#885BD2', '#B6D8F3']
    let pieChartsOption = {
        title: [
            {
                text: datavalue + '%',
                subtext: '满意度',
                textStyle: {
                    fontSize: 26,
                    color: "#D7E9F9",
    
                    fontWeight: 'normal',
                },
                subtextStyle: {
                    fontSize: 12,
                    color: '#D7E9F9'
                },
                x: 'center',
                y: '24%',
            }
        ],
        backgroundColor: 'transparent',
        tooltip: { show: false },
        legend: { show: false },
        polar: {
            radius: ['73%', '85%'],
            center: ['50%', '50%'],
        },
        angleAxis: {
            max: 100,
            show: false,
            startAngle: 180, //开始的角度  
            clockwise: true // 设置角度轴逆时针
        },
        radiusAxis: {
            type: 'category',
            show: true,
            axisLabel: { show: false },
            axisLine: { show: false },
            axisTick: { show: false },
        },
        series: [
            {
                type: 'bar',
                stack: 'round',
                silent: true,
                barWidth: 20, //大的占比环
                showBackground: true,
                backgroundStyle: { color:'#3F5D78' },
                coordinateSystem: 'polar',
                itemStyle: {
                    color: {
                        type: 'linear',
                        colorStops: [{
                            offset: 0, color: '#3295EE'
                        }, {
                            offset: 1, color: '#3295EE'
                        }],
                        global: false
                    }
                },
                data: [datavalue],
                clockWise: false, //顺时加载
            }
        ],
    };
    return pieChartsOption
}
